/*
 * Copyright (c) 2022 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#include "ola_pal_socket.h"

int OlaGetAddrInfo(const char *nodename, const char *servname,
    const OlaAddrInfo *hints, OlaAddrInfo **result)
{
    return 0;
}

void OlaFreeAddrInfo(OlaAddrInfo *addrInfo)
{
    return;
}

int OlaSocket(OlaSocketType type)
{
    return 0;
}

int OlaClose(int fd)
{
    return 0;
}

int OlaSetSocketOpt(int fd, OlaSocketOption option, const void *param)
{
    return 0;
}

int OlaBind(int fd, const OlaSockaddr *addr)
{
    return 0;
}

int OlaConnect(int fd, const OlaSockaddr *addr)
{
    return 0;
}

int OlaRecv(int fd, unsigned char *buf, unsigned short len)
{
    return 0;
}

int OlaSend(int fd, const unsigned char *buf, unsigned short len)
{
    return 0;
}

int OlaRecvFrom(int fd, unsigned char *buf, unsigned short len, OlaSockaddr *from)
{
    return 0;
}

int OlaSendTo(int fd, const unsigned char *buf, unsigned short len, const OlaSockaddr *to)
{
    return 0;
}

int OlaSelect(OlaFdSet *readSet, OlaFdSet *writeSet, OlaFdSet *except, unsigned int timeoutMs)
{
    return 0;
}

unsigned int OlaHtonl(unsigned int hostlong)
{
    return 0;
}

unsigned int OlaNtohl(unsigned int netlong)
{
    return 0;
}

unsigned short OlaHtons(unsigned short hostshort)
{
    return 0;
}

unsigned short OlaNtohs(unsigned short ns)
{
    return 0;
}

int OlaInetAton(const char *ip, unsigned int *addr)
{
    return 0;
}

char *OlaInetNtoa(unsigned int addr)
{
    return 0;
}

unsigned int OlaInetAddr(const char *ip)
{
    return 0;
}

OlaSocketErrorCode OlaGetSocketError(int fd)
{
    return OLA_SOCKET_ERROR_NO_ERROR;
}